% Busco todas las carpetas que comienzen con test
% Ejecuto el test

function w=createNet()
	TEST_PATH="../tests";
	files=readdir(TEST_PATH);
	for f=3:rows(files)
		testpath=sprintf("%s/%s",TEST_PATH,files{f});
		if((index(files{f},".") != 1) && isdir(testpath))
			% first condition is for .svn and hidden files
			w=createNet(testpath);
		endif
	endfor
endfunction

function w=createNet(directory)
	patterns=getPatterns(directory);
	patt=patterns(1,:);
	
	w=weightsMatrix(patt);
endfunction